require("../../assets/js/commonCss"); //导入公共样式
require("./set.less") //引入自己的样式

// 导入axios
const axios = require("../../utils/request");
// 设置服务器地址
axios.defaults.baseURL = "http://fitness.h5.itsource.cn:3701";

// 导入weui
require("weui"); //导入weui的css
let weui = require("weui.js"); //导入weui的js

// 倒计时
let num = 3
let timer = setInterval(function() {
    num--
    // console.log(num);
    document.querySelector("p").textContent = num
    if (num <= 0) {
        document.querySelector("p").textContent = "GO"
        clearInterval(timer)
        location.href = "./running.html"
            // 跳转
    }
}, 1000)